namespace ProjectOdataServer2.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class productplan_put
    {
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int id { get; set; }

        [Required]
        [StringLength(10)]
        public string location { get; set; }

        [Required]
        [StringLength(25)]
        public string productplan { get; set; }

        [Column(TypeName = "date")]
        public DateTime productplan_insert_day { get; set; }

        [Column(TypeName = "date")]
        public DateTime productplan_sub_predict_day { get; set; }

        [Column(TypeName = "date")]
        public DateTime productplan_set_predict_day { get; set; }

        [Required]
        [StringLength(25)]
        public string product_name { get; set; }

        public int product_quantity { get; set; }

        [Required]
        [StringLength(2)]
        public string productplan_code { get; set; }

        public int? work_order_number { get; set; }

        public virtual Location_table Location_table { get; set; }

        public virtual product product { get; set; }
    }
}
